package com.woniu.controller;

import com.woniu.entity.UsedMessage;
import com.woniu.service.UsedMessageService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 二手商品聊天表(UsedMessage)表控制层
 *
 * @author makejava
 * @since 2020-03-23 09:48:25
 */
@RestController
@RequestMapping("usedMessage")
public class UsedMessageController {
    /**
     * 服务对象
     */
    @Resource
    private UsedMessageService usedMessageService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public UsedMessage selectOne(Integer id) {
        return this.usedMessageService.queryById(id);
    }

}